package com.modai.springcloud.entities;

import io.swagger.annotations.SwaggerDefinition;
import lombok.*;

/**
 * @author ：modai
 * @date ：Created in 2020-11-22 22:13
 * @description：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    //404 not_found
    private Integer code;
    private String message;

    private T data;

    public CommonResult(Integer code, String message) {
        this(code,message,null);
    }

}
